package zzzhc.image.ui;

import java.io.File;
import java.io.PrintWriter;

public class ShellCreator {

	public static void main(String[] args) throws Exception {
		PrintWriter writer = new PrintWriter("run.sh");
		writer.append("java -cp bin");
		File f = new File("lib");
		File[] fs = f.listFiles();
		for (File ff : fs) {
			if (ff.getName().endsWith(".jar")) {
				writer.append(":lib/").append(ff.getName());
			}
		}
		writer.append(" zzzhc.image.ui.Gui");
		writer.append("\n");
		writer.close();
	}
}
